<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>{$System_namex}</title>
    <meta http-equiv="X-UA-Compatible"content="IE=9; IE=8; IE=7; IE=EDGE" />
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/m2015.css" />
    <link href="__PUBLIC__/Css/master.css" rel="stylesheet" media="screen" type="text/css" />
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/jquery.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Base.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/prototype.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/mootools.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Ajax/ThinkAjax.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Form/CheckForm.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/Util/ImageLoader.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/myfocus-1.0.4.min.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/all.js\"></sc"+"ript>")</script>
    <script type="text/javascript">document.write("<scr"+"ipt src=\"__PUBLIC__/Js/jquery-1.11.3.min.js\"></sc"+"ript>")</script>
    <style>
        body{background:#fff!important;}
        #among .member #formStyle ul li.tn{width:180px;}
        #among .member #formStyle ul li.checkbox,#among .member #formStyle ul li.button{ margin-left:189px;}
        #among { width: 100%; border: inherit;}
        #wrapper { text-align: center; width: auto!important; width: 100%;  min-width: inherit; max-width: inherit; margin: auto;}
        #header, #among, #footer, #login{width: 100%;}
        #among .member {margin: 0;}
        .ipt{ width:100%; height:40px;margin-top:5px;border-radius: 5px;border: none;padding-left: 10px;}
        .tittle span{color:red;}
        .mar{margin: 5px;background: #b13a33; border:none;border-radius: 5px;color: #fff; height: 30px; width:70px;font-size: 14px;}
        .button{text-align: center;}
        .tittle{ width: 40%;font-size: 14px; font-weight: 500;float: left;height:50px;line-height: 50px;padding-left:15px; }
        .Prompt{font-size: 12px;}
        .input{ width: 60%;float: right}
        /*.to-right{text-align: right;padding-right: 15px;}*/
        .to-border{border-top:1px solid #eee;height:50px}
        .return{height: 40px;line-height: 40px;font-size:16px;padding-left:10px; border-bottom: 1px solid #f4f4f4;}
        .jiaobu{text-align: center;color: #fff; line-height: 100%; }
        .return a{height:40px;line-height: 40px;font-size: 16px;}

 .tit1{
            width:100%;
            text-align: center;
            height:50px;
            line-height:50px;
            font-size:16px;
            color: #fff;
            background: #c73934;
        }

        #formStyle .input {
            border-left:dashed 1px red;
        }

    </style>

</head>
<body>
 <div class="tit1">代理中心注册</div>
<div id="wrapper">
    <form method='post' id="form1" name="form1" action="__URL__/agent_regAC"/>
    <div id="among">
        <div class="clear"></div>
        <div id="formStyle" style="margin-top:20px;">

            <div class="to-border">
                <div class="tittle">推荐人编号</div>
                <div class="input"><input name="RID"  id="RID" type="text" value="{$rs['user_id']}" class="ipt to-right" /></div>
                <!-- <div class="Prompt" >推荐人账号</div> -->
                <div class="clear"></div>
            </div>

            <div class="to-border">
                <div class="tittle">用户编号</div>
                <div class="input hover"><input name="userid"  type="text" id="userid" class="ipt to-right" value="" onafterpaste="this.value=this.value.replace(/\D/g,'')"/></div>
                <!-- <div class="Prompt hover" >使用该账号来登陆系统</div>-->
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">用户名称</div>
                <div class="input"><input name="Name" type="text" class="ipt"  id="Name" value="" maxlength="10"/></div>
                <!--<div class="Prompt hover" >请填写您的用户名称</div> -->
                <div class="clear"></div>
            </div>

            <div class="to-border">
                <div class="tittle">一级密码</div>
                <div class="input">  <input name="Password" type="password" id="Password" value="" class="ipt " /></div>
                <!--<div class="Prompt hover" >请填写密码</div>-->
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">确认一级密码</div>
                <div class="input"><input name="shorePasswordpid" type="password" id="rePassword" value="" class="ipt"/></div>
                <!--<div class="Prompt hover" >请确认密码</div>-->
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle">二级密码</div>
                <div class="input"><input name="PassOpen" type="password" id="PassOpen" value="" class="ipt" /></div>
                <!--<div class="Prompt hover" >请填写二级密码</div>-->
                <div class="clear"></div>
            </div>

            <div class="to-border">
                <div class="tittle">确认二级密码</div>
                <div class="input"><input name="rePassOpen" type="password" id="rePassOpen" value="" class="ipt"  /></div>
                <!--<div class="Prompt hover" >请确认二级密码</div>-->
                <div class="clear"></div>
            </div>

            <div class="to-border">
                <div class="tittle">申请类型</div>
                <div class="input">
                    <select name="shoplx" id="shoplx">
                        <option value="1">{$Aname[0]} ￥{$money_to_service[2]}</option>
                        <option value="2">{$Aname[1]} ￥{$money_to_service[1]}</option>
                    </select>
                </div>
                <!--<div class="Prompt hover" >请确认二级密码</div>-->
                <div class="clear"></div>
            </div>


            <div class="to-border">
                <div class="tittle"><span>*</span> 所在省份：</div>
                <div class="input">
                    <select name="shop_a" id="s_province" class="ipt">
                        <option></option>
                    </select></div>
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle"><span>*</span> 所在市区：</div>
                <div class="input">
                    <select name="shop_b" id="s_city" class="ipt">
                        <option></option>
                    </select></div>
                <div class="clear"></div>
            </div>
            <div class="to-border">
                <div class="tittle"><span>*</span> 所在县区：</div>
                <div class="input">
                    <select name="shop_c" id="s_county" class="ipt">
                        <option></option>
                    </select></div>
                <div class="clear"></div>
            </div>


            <div class="to-border">
                <div class="tittle">备注：</div>
                <div class="input">
                    <textarea name="content" id="content" cols="20" rows="2"></textarea>
                </div>
                <!--<div class="Prompt hover" >请确认二级密码</div>-->
                <div class="clear"></div>
            </div>

            <div class="to-border">
                <div class="button">
                    <input name="submit1" id="Access" type="submit" value="注册" class="mar"/>
                    <!-- <input name="重置" type="reset" class="button_text1 mar" value="重置" id="重置" /> -->
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    </form>

    <div class="nr" style="text-align: left">
        <p style="font-size:24px; color:#f00;">
            <a href="__APP__/Reg/us_reg/rid/{:I('get.rid')}" style="font-size:20px; color:#f00;"   >
                去注册正式会员
            </a>
        </p>
        <div style="width:50%;margin: 0 auto; word-wrap:break-word; word-break:normal;" >{$from_rs['content']}</div>
    </div>
    <!--<div class="nr" style="text-align: center"><p style="font-size:24px; color:#f00;">用户注册协议</p>-->
    <!--<div style="width:50%;margin: 0 auto; word-wrap:break-word; word-break:normal;" >{$from_rs['content']}</div>-->
    <!--</div>-->
</div>

<script language="javascript">
    var PUBLIC	 =	 '/Public';
    ThinkAjax.image = [	 '/Public/Images/loading2.gif', '/Public/Images/ok.gif','/Public/Images/update.gif' ]
    ThinkAjax.updateTip	=	'发送中～';
    function loginHandle(data,status){
        if (status==1)
        {
            $('result').innerHTML	=	'<span style="color:blue"><img SRC="/Public/Images/ok.gif" WIDTH="20" HEIGHT="20" BORDER="0" ALT="" align="absmiddle" > 登录成功！3 秒后跳转～</span>';
            $('form1').reset();
            window.location = '/index.php/Public';
        }else{
            fleshVerify();
        }
    }
    function keydown(e){
        var e = e || event;
        if (e.keyCode==13)
        {
            ThinkAjax.sendForm('form1','/index.php/Public/checkLogin/',loginHandle,'result');
        }
    }
    function fleshVerify(type){
//重载验证码
        var timenow = new Date().getTime();
        if (type)
        {
            $('verifyImg').src= '/index.php/Public/verify/adv/1/'+timenow;
        }else{
            $('verifyImg').src= '/3mmm/mmm/index.php/Public/verify/'+timenow;
        }

    }

    function yhServer(Ful,lx){
        var str = $F(Ful).replace(/^\s+|\s+$/g,"");
        var re = /[^(\w){6,20}$]/g;
        str = str.replace(re,"");
        document.getElementById(Ful).value = str;
        if (str != ""){
            if(lx==0){ThinkAjax.send('__APP__/Fck/check_shopid/','ajax=1&shopid='+str,'',Ful+'1');}
            if(lx==1){ThinkAjax.send('__APP__/Fck/check_reid/','ajax=1&reid='+str,'',Ful+'1');}
            if(lx==2){ThinkAjax.send('__APP__/Fck/check_fid/','ajax=1&fid='+str,'',Ful+'1');}
            if(lx==3){ThinkAjax.send('__APP__/Fck/check_userid/','ajax=1&userid='+str,'',Ful+'1');}
        }
    }

    function guolv(Ful){
        var str = $F(Ful).replace(/^\s+|\s+$/g,"");
        var re = /[^(\w){6,20}$]/g;
        str = str.replace(re,"");
        document.getElementById(Ful).value = str;
    }
    window.onload = function(){
        fleshVerify();
    }

</script>


<script>
    function getmobliemsg(){
        var tel = $("#UserTel").val();

        var btn = document.getElementById("btn_verify");

        var length=tel.length;

        if (length==0)
        {
            alert('用于登陆的手机号码不能为空...');
            return;
        }
        if(/^(13[0-9]|14[0-9]|15[0-9]|18[0-9]|17[0-9])\d{8}$/i.test(tel))
        {

            time(btn);
            $.post("__URL__/createActiveCode",{moblie:tel});

        }
        else{
            alert('手机号码格式不正确请重新输入...');
            return;
        }
    }
    var wait=120;
    function time(o) {
        if (wait == 0) {
            o.removeAttribute("disabled");
            o.value="免费获取验证码";
            wait = 120;
        } else {
            o.setAttribute("disabled", true);
            o.value=wait+"秒钟后可以重新发送";
            wait--;
            setTimeout(function() {
                        time(o)
                    },
                    1000)
        }
    }

</script>
 <load href="__PUBLIC__/Js/UserJs.js" />
 <script type="text/javascript">
     var opt0 = ["省份","地级市","市、县级市"];//初始值
     _init_area();
 </script>

 <script type="text/javascript">
     var Gid  = document.getElementById ;
     var showArea = function(){
         Gid('show').innerHTML = "<h3>省" + Gid('s_province').value + " - 市" +
             Gid('s_city').value + " - 县/区" +
             Gid('s_county').value + "</h3>"
     }
     // Gid('s_county').setAttribute('onchange','showArea()');
 </script>